<?php
namespace Contacts\Form;


use Zend\Form\Form;

class ContactForm extends Form
{
	public function __construct($name = null)
	{
		parent::__construct('contacts');

		$this->setAttribute('method', 'post');

		$this->add(array(
				'name' => 'id',
				'type' => 'Hidden',
		));
		
		
		$this->add(array(
				'name' => 'department',
				
				'attributes' => array(
						'type' => 'text',
				),
				'options' => array(
						'label' => 'Departement',
				),
		));

		$this->add(array(
				'name' => 'firstname',
				
				'attributes' => array(
						'type' => 'text',
						
				),
				'options' => array(
						'label' => 'First Name',
				),
		));

		$this->add(array(
				'name' => 'jobtitle',
				
				'attributes' => array(
						'type' => 'text',
				),
				'options' => array(
						'label' => 'Job Title',
				),
		));

		$this->add(array(
				'name' => 'lastname',
				
				'attributes' => array(
						'type' => 'text',
						'required' => 'required',
				),
				'options' => array(
						'label' => 'Last Name*',
				),
		));

		$this->add(array(
				'name' => 'mobilephone',
				
				'attributes' => array(
						'type' => 'text',
				),
				'options' => array(
						'label' => 'Mobile Phone',
				),
		));

		$this->add(array(
				'name' => 'officephone',
				
				'attributes' => array(
						'type' => 'text',
				),
				'options' => array(
						'label' => 'Office Phone',
				),
		));

		$this->add(array(
				'name' => 'officefax',
				
				'attributes' => array(
						'type' => 'text',
				),
				'options' => array(
						'label' => 'Office Fax',
				),
		));

		$this->add(array(
				'name' => 'ownedsecurableitem_id',
				
				'attributes' => array(
						'type' => 'text',
				),
				'options' => array(
						'label' => 'Ownedsecurableitem id',
				),
		));

		$this->add(array(
				'name' => 'primaryaddress_address_id',
				
				'attributes' => array(
						'type' => 'text',
				),
				'options' => array(
						'label' => 'Primaryaddress address id',
				),
		));

		$this->add(array(
				'name' => 'primaryemail_email_id',
			
				'attributes' => array(
						'type' => 'text',
				),
				'options' => array(
						'label' => 'Primaryemail email id',
				),
		));

		$this->add(array(
				'name' => 'title_customfield_id',
				
				'attributes' => array(
						'type' => 'text',
				),
				'options' => array(
						'label' => 'Title customfield id',
				),
		));

		
	
		$this->add(array(
				'name' => 'submit',
				'type' => 'Submit',
				'attributes' => array(
						'value' => 'Go',
						'id' => 'submitbutton',
				),
		));
	}
	
}